<?php


namespace app\common\lib;


class Number
{
    public static function getCode(int $lent = 4):int
    {
        $code = rand(1000,9999);
        if($lent == 6){
            $code = rand(100000,999999);
        }
        return $code;
    }
}